package com.edais.service.gift;

import com.edais.domain.gift.GiftPackage;
import com.edais.domain.gift.GiftPackageGift;

import java.util.List;
import java.util.Map;

/**
 * 礼包Service
 * Created by haoyx on 2016/11/14.
 */
public interface GiftPackageService {

    /**
     * 获取礼包
     * @param params        参数
     * @return                      礼包
     * @throws Exception    异常
     */
    Map<String, Object> queryGiftPackageList(Map<String, String> params) throws Exception;

    /**
     * 获取礼包礼品
     * @param params        参数
     * @return                      礼包礼品
     * @throws Exception    异常
     */
    Map<String, Object> queryGiftPackageGiftList(Map<String, String> params) throws Exception;

    GiftPackage selectByPrimaryKey(Long id);

    /**
     * 赠送礼包
     * @param params        参数
     * @return                      结果
     * @throws Exception    异常
     */
    Map<String, String> giveWelFarePackage(Map<String, String> params) throws Exception;

    /**
     * 格式化礼品url
     * @param list
     * @throws Exception
     */
    void giftFomartImageUrl(List<GiftPackageGift> list) throws Exception;
}
